trivial-httpd: Port mostly to fd-relative
authorColin Walters <walters@verbum.org>
Wed, 14 Sep 2016 20:08:24 +0000 (16:08 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Wed, 5 Oct 2016 21:48:41 +0000 (21:48 +0000)
commit524d2d5cb24cb5693406d0cc4973e40ae028d27f
tree2b8b21fd26a71c278cd78529798063676601ff7c
parenta981e5fd7685caeca79ae711f30640768a70de3a
trivial-httpd: Port mostly to fd-relative

We were seeing some weird potential memory corruption in this code
when using it for `rpm-ostree-toolbox installer`, which is almost
certainly not its fault, but let's use it as an excuse to port
(mostly) to fd-relative and away from GFile.

Dropping the last GFile use here is a bit tricky as it does have a
nice high level wrapper around inotify.

Closes: #512
Approved by: jlebon
src/ostree/ot-builtin-trivial-httpd.c